<template>
	<el-row>
		<el-col :span="24">
			<el-form :inline="true">
				<slot name="form" :searchParams="searchParams"></slot>
				<el-form-item>
					<el-button size="mini" type="primary" 
						@click="$emit('search', {params: searchParams})">查询
						<i class="el-icon-search"></i>
					</el-button>
				</el-form-item>
			</el-form>
		</el-col>
	</el-row>
</template>

<script>
export default {
	props: {
		searchParams: {
			type: Object
		}
	}
}
</script>